package com.cn.api;



import com.cn.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Primary
@FeignClient(value = "distributor-server",path = "/back/distributor")
public interface DistributorFeignClient {

    @GetMapping("/enterPrise")
    Result enterPrise(
            @RequestParam("name") String name,
            @RequestParam("unified") String unified,
            @RequestParam("organization") String organization,
            @RequestParam("taxregistration") String taxregistration,
            @RequestParam("bank") String bank,
            @RequestParam("legalrepresentative") String legalrepresentative,
            @RequestParam("representativeid") String representativeid,
            @RequestParam("img") String img
    );

    @GetMapping("/personalAdd")
    Result personalAdd(
            @RequestParam("name") Integer name,
            @RequestParam("idCard") Integer idCard,
            @RequestParam("phone") Integer phone,
            @RequestParam("img") Integer img
    );
}
